<form class="form-horizontal" action="jsp/admin/user/attribute/DoModifyAttribute.jsp" method="post" >
	<fieldset>
		<legend>#i18n{portal.users.modify_attribute.pageTitleAttributeText}</legend>
	    <div class="control-group">
	        <label class="control-label" for="title">#i18n{portal.users.modify_attribute.labelTitle} * : </label>
	        <div class="controls">
		        <input type="text" name="title" id="title" size="80" value="${attribute.title}"  maxlength="255" />
		        <span class="help-block">#i18n{portal.users.modify_attribute.labelTitleComment}</span>
			</div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="help_message"> #i18n{portal.users.modify_attribute.labelHelpMessage} : </label>
	        <div class="controls">
		        <textarea  name="help_message" id="help_message"  cols="80" rows="5">${attribute.helpMessage}</textarea>
	       		<span class="help-block">#i18n{portal.users.modify_attribute.labelHelpMessageComment}</span>
	       	</div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="value">#i18n{portal.users.create_attribute.labelDefaultValue} : </label>
	        <div class="controls">
		        <#list attribute_fields_list as attribute_field>
	        		<input type="text" name="value" id="value" size="80" value="${attribute_field.value}" />
	        	</#list>
	        </div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="">#i18n{portal.users.modify_attribute.labelType} : </label>
	        <div class="controls">
		        ${attribute.attributeType.name}
		    </div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="is_shown_in_search">#i18n{portal.users.modify_attribute.labelIsShownInSearch} : </label>
	       <div class="controls">
		        <#if attribute.shownInSearch = false>
	        		<input name="is_shown_in_search" value="1" type="checkbox" />
	        	<#else>
	        		<input name="is_shown_in_search" value="1" type="checkbox" checked="checked" />
	        	</#if>
	        </div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="is_shown_in_result_list">#i18n{portal.users.modify_attribute.labelIsShownInResultList} : </label>
	        <div class="controls">
		        <#if attribute.shownInResultList = false>
	        		<input name="is_shown_in_result_list" value="1" type="checkbox" />
	        	<#else>
	        		<input name="is_shown_in_result_list" value="1" type="checkbox" checked="checked" />
	        	</#if>
	        </div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="mandatory">#i18n{portal.users.modify_attribute.labelMandatory} : </label>
	        <div class="controls">
		        <#if attribute.mandatory = false>
	        		<input name="mandatory" value="1" type="checkbox" />
	        	<#else>
	        		<input name="mandatory" value="1" type="checkbox" checked="checked" />
	        	</#if>
	        </div>
	    </div>	
	    <div class="control-group">
	        <label class="control-label" for="width">#i18n{portal.users.modify_attribute.labelWidth} * : </label>
	        <div class="controls">
		        <#list attribute_fields_list as attribute_field>
	        		<input type="text" name="width" id="width" size="5" 
	           		<#if attribute_field.width?? && ( attribute_field.width >= 0 )>
	           			value="${attribute_field.width}"
	          		<#else>
	          			value=""
	        		</#if>
	          		/>
	      		</#list>
	      	</div>
	    </div>
	    <div class="control-group">
	        <label class="control-label" for="max_size_enter">#i18n{portal.users.modify_attribute.labelMaxSizeEnter}  : </label>
	        <div class="controls">
		        <#list attribute_fields_list as attribute_field>
	        		<input type="text" name="max_size_enter" id="max_size_enter" size="5" 
	               <#if attribute_field.maxSizeEnter?? && ( attribute_field.maxSizeEnter >= 0 )>
	               value="${attribute_field.maxSizeEnter}"
	               <#else>
	               value=""
	               </#if>
	               />
	   			</#list>
	   		</div>
	    </div>
	    <div class="form-actions">
	        <input type="hidden" name="id_attribute" value="${attribute.idAttribute}" />
	        <button name="validate" value="#i18n{portal.users.modify_attribute.buttonValidate}" class="btn btn-primary btn-small" >
	        	<i class="icon-ok icon-white">&nbsp;</i>&nbsp;#i18n{portal.users.modify_attribute.buttonValidate}
	        </button>
	        <button name="apply" value="#i18n{portal.users.modify_attribute.buttonApply}" class="btn btn-primary btn-small" >
	        	<i class="icon-ok-circle icon-white">&nbsp;</i>&nbsp;#i18n{portal.users.modify_attribute.buttonApply}
	        </button>
	        <button name="cancel" value="#i18n{portal.admin.message.buttonCancel}" class="btn btn-small" >
	        	<i class="icon-remove-circle">&nbsp;</i>&nbsp;#i18n{portal.admin.message.buttonCancel}
	        </button>
	    </div>
    </fieldset>
</form>
